import os

path = os.getcwd()
list_files = os.walk(path,topdown=True)

for root,dirs,files in list_files:
    for name in files:
        print(os.path.join(root,name))
    for name in dirs:
        print(os.path.join(root,name))